package message.types.data;

import junit.framework.Assert;


import org.junit.Test;

import stalker.user.User;
import data.content.Content;
import data.content.ContentSentence;

public class AddDataRequestTest {
  
  @Test
  public void testAll() {
    User gogo = User.createUser("gogo");
    Content con = new ContentSentence("Jelek!");
    AddDataRequest req = new AddDataRequest(gogo, gogo, con);
    Assert.assertEquals("AddDataRequest: getContent fail",
        con, req.getContent());
    Assert.assertEquals("Request: getClient fail",
        gogo, req.getClient());
    Assert.assertEquals("Request: getDestination fail",
        gogo, req.getDestination());
    Assert.assertEquals("Request: equals fail", req, req);
    Assert.assertFalse("Request: equals fail", req.equals(null));
  }

}
